package valutatore;

public class SeqExpr extends Expr {
	private final Expr[] seq;

	public SeqExpr(Expr[] seq) {
		this.seq = seq;
	}

	public static SeqExpr _(Expr... seq) {
		// TODO
		return new SeqExpr(seq);
	}

	@Override
	public Value eval(Env env) {
		Value value = null;
		for (int i = 0; i < seq.length; ++i) {
			value = seq[i].eval(env);
		}
		return value;
	}

}
